Skip to content

Vector Extension Type#6964

Open
connortsui20 wants to merge 7 commits intodevelopfrom
ct/ext-vec
Open

Vector Extension Type#6964
connortsui20 wants to merge 7 commits intodevelopfrom
ct/ext-vec

Conversation

@connortsui20
Copy link
Contributor

@connortsui20 connortsui20 commented Mar 13, 2026

Summary

Tracking Issue: #6865

Adds a Vector extension type and a new L2Norm expression.

Additionally adds a AnyTensor type that can be matched on for any kind of tensor we want.

Right now the code assumes that everything is built on top of FixedSizeList, but in the future that might change.

Additionally make some touchups to the vortex-tensor crate in general.

API Changes

The new Vector and L2Norm types.

Testing

Some basic tests.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@connortsui20 connortsui20 marked this pull request as ready for review March 16, 2026 15:01
@connortsui20 connortsui20 requested a review from gatesn March 16, 2026 15:01
Ok(args.to_vec())
}

// TODO(connor): This needs a precondition for the number of args it has, or all implementations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should already be a check using the arity of the function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried backtracing through the code myself but I couldn't find where that is called

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants